package cn.miao.controller;

import cn.miao.dto.SearchCourseDto;
import cn.miao.service.ICourseESService;
import cn.miao.util.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: springcloud-hrm
 * @description:
 * @author: MiaoWei
 * @create: 2021-11-30 19:32
 **/
@RestController
@RequestMapping("/es")
public class SearchCourseController {

    @Autowired
    private ICourseESService courseESService;

    @PostMapping("/searchCourse")
    public AjaxResult search(@RequestBody SearchCourseDto dto) {
        return courseESService.searchCourse(dto);
    }
}
